//
//  AppDelegate.m
//  MXTuYaSweeperDemo
//
//  Created by MUXIN-iOS on 2024/6/3.
//

#import "AppDelegate.h"
#import <ThingSmartHomeKit/ThingSmartKit.h>
#import <ThingSmartAVBaseKit/ThingSmartAVBaseKit.h>
#import <YYModel/YYModel.h>
#import "MXMainViewController.h"

#define SCREEN_BOUNDS                                   ([UIScreen mainScreen].bounds)
#define SCREEN_WIDTH                                    ([UIScreen mainScreen].bounds.size.width)

@interface AppDelegate ()

@end

@implementation AppDelegate

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    // Override point for customization after application launch.
    self.window = [[UIWindow alloc] initWithFrame:SCREEN_BOUNDS];
    [self.window setBackgroundColor:[UIColor whiteColor]];
    self.window.overrideUserInterfaceStyle = UIUserInterfaceStyleLight;
    
    [[ThingSmartSDK sharedInstance] startWithAppKey:@"gd5nek44jcnr83e89ndw" secretKey:@"gvmawpanpngp4nfruhaektwyerfyt9n5"];
    [ThingSmartSDK sharedInstance].debugMode = YES;
    MXMainViewController *mainVC = [[UIStoryboard storyboardWithName:@"Main" bundle:nil] instantiateViewControllerWithIdentifier:@"main_vc"];
    UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:mainVC];
    [self.window setRootViewController:nav];
    
    [self.window makeKeyAndVisible];
    return YES;
}


@end
